package com.lantosec.hmrp.modules.archives.entity;

import java.time.LocalDateTime;
import java.util.Date;

import com.lantosec.hmrp.core.mvc.BaseEntity;
import com.lantosec.hmrp.modules.archives.vo.UserTalkVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * <p>
 * 领导干部廉政谈话情况表 实体类
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserTalk extends BaseEntity<UserTalkVO> {

    private static final long serialVersionUID = 1L;
    public UserTalk(UserTalkVO vo){
        this.userTalkId = vo.getUserTalkId();
        this.userId = vo.getUserId();
        this.talkDate = vo.getTalkDate();
        this.talkType = vo.getTalkType();
        this.talkContent = vo.getTalkContent();
        this.talker = vo.getTalker();
        this.remark = vo.getRemark();
        this.createId = vo.getCreateId();
        this.createUser = vo.getCreateUser();
        this.createTime = vo.getCreateTime();
        this.verifyId = vo.getVerifyId();
        this.verifyUser = vo.getVerifyUser();
        this.verifyTime = vo.getVerifyTime();
        this.verifyStatus = vo.getVerifyStatus();
    }

    @Override
    public UserTalkVO convertToVO(){
        return new UserTalkVO(this);
    }


    /**
     * 主键ID
     */
    @TableId(value = "user_talk_id", type = IdType.ASSIGN_UUID)
    private String userTalkId;

    /**
     * 用户主表ID
     */
    private String userId;

    /**
     * 谈话时间
     */
    private String talkDate;

    /**
     * 谈话方式
     */
    private String talkType;

    /**
     * 谈话内容
     */
    private String talkContent;

    /**
     * 谈话人
     */
    private String talker;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建人ID
     */
    private String createId;

    /**
     * 创建人姓名
     */
    private String createUser;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 审核人ID
     */
    private String verifyId;

    /**
     * 审核人姓名
     */
    private String verifyUser;

    /**
     * 审核时间
     */
    private Date verifyTime;

    /**
     * 审核状态（0：未审核，1：以审核）
     */
    private Integer verifyStatus;


    public enum ColName {
        user_talk_id, user_id, talk_date, talk_type, talk_content, talker, remark, create_id, create_user, create_time, verify_id, verify_user, verify_time, verify_status, 
    }
}
